package com.group02.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.group02.community.entity.owner.ZyOwnerRoom;
import com.group02.community.entity.vo.OwnerVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OwnerRoomMapper extends BaseMapper<ZyOwnerRoom> {

    void updateOwnerId(String ownerRoomId);

    void updateOwnerRoomByRoomId(String roomId, String status);

    List<String> getRoomStatus();

    IPage<OwnerVO> getAllOwnerRoom(IPage<OwnerVO> page, String status);

    ZyOwnerRoom getByOwnerRoomId(String ownerRoomId);
}
